package fr.oz.mobile.module.profile.nav 
{
	import flash.display.Sprite;
	import flash.text.TextField;
	import fr.digitas.flowearth.conf.Conf;
	import fr.digitas.flowearth.text.styles.styleManager;
	/**
	 * ...
	 * @author Fazermokeur
	 */
	public class ProfilNavItemWeekManager extends Sprite
	{
		private var tf:TextField;
		
		public function ProfilNavItemWeekManager(week:String) 
		{
			var hash_week:Array = week.split("|");
			var len:int = hash_week.length;
			var label:String = "";
			for (var i:int = 0; i < len; i++) 
			{
				if (hash_week[i] == 1) {
					label += Conf.getDatas("common").weekLang.day.(@id == i) + "   ";
				}
			}
			
			tf = new TextField();
			styleManager.apply(tf, ".profile_module_pad_profil_week", label);
			
			addChild(tf);
		}
		
	}

}